/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sda.levelup.jdbc.library;

/**
 *
 * @author Дима
 */
public class BookDB
{
    
    private int id_book;
    private String name;
    private int id_author;
    private int id_genre;
    private int id_publisher;

    public BookDB(int id_book, String name, int id_author, int id_genre, int id_publisher) {
        this.id_book = id_book;
        this.name = name;
        this.id_author = id_author;
        this.id_genre = id_genre;
        this.id_publisher = id_publisher;
    }

    public int getId_book() {
        return id_book;
    }

    public String getName() {
        return name;
    }

    public int getId_author() {
        return id_author;
    }

    public int getId_genre() {
        return id_genre;
    }

    public int getId_publisher() {
        return id_publisher;
    }

    @Override
    public String toString() {
        return id_book+"|"+name+"|"+id_author+"|"+id_genre+"|"+id_publisher;
    }
    
    
}
